ostbuild: Fix typos in component lookup path
authorColin Walters <walters@verbum.org>
Mon, 21 May 2012 22:41:59 +0000 (18:41 -0400)
committerColin Walters <walters@verbum.org>
Mon, 21 May 2012 22:41:59 +0000 (18:41 -0400)
src/ostbuild/pyostbuild/builtins.py

index db8b009fae3b3fc1041e1faffb1c0f5991912d86..5b7b87d03c4b05a775693bfc114a6138ea5192bf 100755 (executable)
@@ -134,9 +134,9 @@ class Builtin(object):
             target_snapshot = self.snapshot
         else:
             target_snapshot = in_snapshot
-        component = self.find_component_in_snapshot(self, target_snapshot)
+        component = self.find_component_in_snapshot(name, target_snapshot)
         if component is None:
-            fatal("Couldn't find component '%s' in manifest" % (component_name, ))
+            fatal("Couldn't find component '%s' in manifest" % (name, ))
         return component
 
     def get_expanded_component(self, name):